#pragma once

#include "portaudio.h"

#define PA_SAMPLE_TYPE      paInt16
#define TSAMPLE				short


bool ListAudioDevices(PaHostApiTypeId API_type);
bool InitAudio(void);
void CloseAudio(void);
bool CheckDevice(PaHostApiTypeId API_type, int In, int Out, int SampleRate);
void PrintAPIInfo(void);
bool OpenStream(PaHostApiTypeId API_type, int In, int Out, int SampleRate, PaStreamCallback *callback);


